<template>
	<div class="">
		<task :rwinfoid="id"></task>
	</div>
</template>

<script type="text/babel">
	import task from '../../../components/task.vue'

	export default {
		name: "",
		data() {
			return {
				id:""
			}
		},
		components: {task},
		
		beforeRouteEnter(to, from, next) { //路由导航钩子，通过页面路由标记是否需要清空页面数据重新加载
		    to.meta['fromPath'] = from.path;
			to.meta['needFresh'] = false;
		    
		    next();
		  },
		activated(){
			
		},
		mounted() {
			if(this.$route.params.key == 'open'){
				this.id = this.$route.params.id
			}
		},
	
	}
</script>
<style></style>
